package dssd.clienteWS;

public class SiniestroProxy implements dssd.clienteWS.Siniestro_PortType {
  private String _endpoint = null;
  private dssd.clienteWS.Siniestro_PortType siniestro_PortType = null;
  
  public SiniestroProxy() {
    _initSiniestroProxy();
  }
  
  public SiniestroProxy(String endpoint) {
    _endpoint = endpoint;
    _initSiniestroProxy();
  }
  
  private void _initSiniestroProxy() {
    try {
      siniestro_PortType = (new dssd.clienteWS.Siniestro_ServiceLocator()).getsiniestroPort();
      if (siniestro_PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)siniestro_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)siniestro_PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (siniestro_PortType != null)
      ((javax.xml.rpc.Stub)siniestro_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public dssd.clienteWS.Siniestro_PortType getSiniestro_PortType() {
    if (siniestro_PortType == null)
      _initSiniestroProxy();
    return siniestro_PortType;
  }
  
  public int realizoDenuncias(java.lang.String arg0) throws java.rmi.RemoteException{
    if (siniestro_PortType == null)
      _initSiniestroProxy();
    return siniestro_PortType.realizoDenuncias(arg0);
  }
  
  public int realizoInfracciones(java.lang.String arg0) throws java.rmi.RemoteException{
    if (siniestro_PortType == null)
      _initSiniestroProxy();
    return siniestro_PortType.realizoInfracciones(arg0);
  }
  
  
}